#include <stdio.h>

#include "usage.h"

void usage(void)
{
	printf("============================================================================================\n");
	printf("sklcc-dpi-platform usage:\n");
	printf("If you want to use old core, you should use -f at first, and then append old core's commond.\n");
	printf("For example: \"./sklcc-dpi-platform -f -h\", then you can see old core's help.\n");
	printf("And if you use config file, following optionis won't cover configures from config file,\n");
	printf("except \"-f\"\n");
	printf("----------------\n");
	printf("-f OLD CORE COMMOND\t\t\t\tuse old core\n");
	printf("-c INTERFACE NAME\t\t\t\tchoose pcap live mode\n");
	printf("-l FILE NAME\t\t\t\t\tchoose pcap read mode\n");
	printf("-u MICROSECEND\t\t\t\t\tset global waitting time for usleep()\n");
	printf("-m MEMORY LIMITATION\t\t\t\tset the limitation that each user mode task can use\n");
	printf("-a FREE MODE\t\t\t\t\tchoose free mode\n");
	printf("-t MAX ID\t\t\t\t\tset max id\n");
	printf("-b NUM(0 or 1)\t\t\t\t\tuse mail\n");
	printf("-d MAIL ADDRESS\t\t\t\t\tset mail address\n");
	printf("-s DB_NAME,DB_USER_NAME,PASSWD,ADDRESS\t\tset database info\n");
	printf("-h \t\t\t\t\t\tprint this help message\n");
	printf("----------------\n");
	printf("If you still have some problems, send an email to: qthdaidai@qq.com\n");
	printf("=============================================================================================\n");
}

